package com.yjd.msg.comm.util;

import com.aliyun.mns.client.CloudAccount;
import com.aliyun.mns.client.MNSClient;
import org.springframework.beans.factory.InitializingBean;

public class AliyunClient implements InitializingBean {

    private MNSClient client;
    
    private String accessKeyId;
    
    private String accessKeySecret;
    
    private String endpoint;

    public MNSClient getClient() {
        return client;
    }

    @Override
    public void afterPropertiesSet() throws Exception {
	   client = new CloudAccount(accessKeyId, accessKeySecret, endpoint).getMNSClient();
    }

    public String getAccessKeyId() {
        return accessKeyId;
    }

    public void setAccessKeyId(String accessKeyId) {
        this.accessKeyId = accessKeyId;
    }

    public String getAccessKeySecret() {
        return accessKeySecret;
    }

    public void setAccessKeySecret(String accessKeySecret) {
        this.accessKeySecret = accessKeySecret;
    }

    public String getEndpoint() {
        return endpoint;
    }

    public void setEndpoint(String endpoint) {
        this.endpoint = endpoint;
    }
    
    
   

}
